package com.hdax.service.Impl;

import com.hdax.entity.Daily;
import com.hdax.mappers.DailyMapper;
import com.hdax.service.DailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DailyServiceImpl implements DailyService {

    @Autowired
    private DailyMapper dailyMapper;


    @Override
    public int insert(Daily daily) {
        return dailyMapper.insert(daily);
    }

    @Override
    public List<Daily> findAll(int offset, int limit, int empid) {
        return dailyMapper.findAll(offset,limit,empid);
    }

    @Override
    public int count() {
        return dailyMapper.count();
    }
}
